//
//  UIInit.m
//  Do_exercise
//
//  Created by shigzzz on 15/7/1.
//  Copyright (c) 2015年 asiainfo. All rights reserved.
//

#import "UIInit.h"

@implementation UIInit

+ (UIButton *)buttonWithTitle:(NSString *)buttonTitle andFrame:(CGRect)frame {
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    [button setTitle:buttonTitle forState:UIControlStateNormal];
    [button setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    button.frame = frame;
    return button;
}

+ (UILabel *)labelWithText:(NSString *)text andFrame:(CGRect)frame {
    UILabel *label = [[UILabel alloc]initWithFrame:frame];
    [label setText:text];
    [label setTextColor:[UIColor blackColor]];
    return label;
}

@end
